<?
    $arrListValue = '';
	if($this->element->arrListValue){
		$arrListValue = $this->element->arrListValue;
	}
	$arrOption = $this->element->option;
	$label = $arrOption['label'];
	$htmlLabel = '';
	if ($label) {
		$htmlLabel .= '<div>';
		$htmlLabel .= '<label for="'.$this->element->getId().'" '.Clound_Public::getInstance()->_htmlAttribs($arrOption['labeloptions']).'>'.$label.'</label>';
		$htmlLabel .= '</div>';
	}
	unset($arrOption['label']);
	unset($arrOption['labeloptions']);
	unset($arrOption['blockoptions']);
	unset($arrOption['value']);
	$shtml = Clound_Public::getInstance()->_htmlAttribs($arrOption);
?>
<div class="datatable_block" id="block_<?=$this->element->getId();?>">
	<?=$htmlLabel;?>
    <!-- Redirect browsers with JavaScript disabled to the origin page -->
    <noscript><input type="hidden" name="redirect" value=""></noscript>
	<input type="hidden" name="<?=$this->element->getName();?>" id="<?=$this->element->getId();?>" <?=$shtml;?>>
    <div class="datatable_data">
		<table id="table_<?=$this->element->getId();?>" class="list-table-data">
			<col width = '30%'><col width = '65%'><col width = '5%'>
			<tr class='header'>
				<td>Loại tài sản</td><td>Nội dung thay đổi</td><td>Tác vụ</td>
			</tr>
			<tr class='row_input'>
				<td><textarea class="data_textarea" name="input_add[]" rows="1" title="Loại tài sản" style="min-width: 95%; width: 95%; max-width: 95%;"></textarea></td>
				<td><textarea class="data_textarea" name="input_add[]" rows="1" title="Nội dung thay đổi" style="min-width: 95%; width: 95%; max-width: 95%;"></textarea></td>
				<td><button type="button" class="btn btn-add-decorators" onclick="tttsdacapgcn.add_item();">&crarr;</button></td>
			</tr>
		</table>
    </div>
</div>
<script type="text/javascript">
var tttsdacapgcn = new Js_GeneralItem({
		input_id: '<?=$this->element->getId();?>',
		input_select: 'textarea[name^=input_add]',
		block: $('#block_<?=$this->element->getId();?>'),
		defaultValue: '<?=$arrListValue?>',
		columns: ['loaitaisan','noidungthaydoi2']
	});
</script>